package com.damei.qmui_test_demo.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

import com.damei.qmui_test_demo.R;
import com.damei.qmui_test_demo.activity.login.PhoneLoginActivity;
import com.damei.qmui_test_demo.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import es.dmoral.toasty.Toasty;

/**
 * 登录
 */
public class LoginActivity extends BaseActivity {

   //是否勾选协议
    protected boolean isSelect = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);

        setLightStatus(true);
    }

    @OnClick({R.id.login_wechat_btn, R.id.login_phone_btn})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.login_wechat_btn:
                Toast.makeText(this, "点击微信登录", Toast.LENGTH_SHORT).show();
                break;
            case R.id.login_phone_btn:
                startActivity(new Intent(this, PhoneLoginActivity.class));
                break;
        }
    }
}
